<template>
  <div class="weekend">
        <div class="weekend-header">周末去哪儿</div>
        <ul class="items">
            <li class="item" v-for="item of weekendList" :key="item.id">
                <div class="item-img-wrap">
                    <img class="item-img" :src="item.imgUrl" />
                </div>
                <div class="item-info">
                <p class="item-title">{{item.title}}</p>
                <p class="item-detail">{{item.desc}}</p>
                </div>
            </li>
        </ul>
  </div>
</template>

<script>
export default{
  props: ['weekendList'],
  name: 'HomeWeekend'
}
</script>

<style lang="stylus" scoped>
  .weekend-header
    height:.8rem
    line-height:.8rem
    background:#eee
  .item-info
    padding:.14rem .2rem .2rem .2rem
  .item-img
    width:100%
  .item-title
    line-height:.48rem
    font-size:.28rem
  .item-detail
    line-height:.42rem
    font-size:.24rem
</style>
